﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using GraphCompiler.Core.ObjectModel.DiagramModel;

namespace GraphCompiler.Specification.ObjectModel.DiagramModel
{
    public class BoxSpecs
    {
        [TestFixture]
        public class without_properties
        {
            Box _box = new Box("foo");
            Box _boxWithSameName = new Box("foo");
            Box _boxWithOtherName = new Box("bar");

            [Test]
            public void is_equal_to_self()
            {
                Assert.AreEqual(_box, _box);
            }

            [Test]
            public void is_equal_to_box_with_same_name()
            {
                Assert.AreEqual(_box, _boxWithSameName);
            }

            [Test]
            public void is_not_equal_to_box_with_other_name()
            {
                Assert.AreNotEqual(_box, _boxWithOtherName);
            }
        }
    }
}
